<%@ Page Language="C#" MasterPageFile="~/MasterPage/BaseLine.Master" AutoEventWireup="true"
  Codebehind="ImportRatePage.aspx.cs" Inherits="WebRobot.Pages.ImportRatePage" Title="::Web Robot:Import Rate::" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dxuc" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div class="heading">
    Import rate
  </div>
  <div>
  <table id="Table1" runat="server">
    <tr>
      <td runat="server" align="center" colspan="2" style="width: 823px">
        <span id="lbStatus" runat="server"></span>
      </td>
    </tr>
    <tr>
      <td >
        <span   style="color: #808099; float:right">Upload Internal Rate File: </span>
      </td>
      <td>
        <div style="float: left">
          <asp:FileUpload ID="ulfInternalRate" runat="server" BackColor="White" BorderColor="Black"
              BorderStyle="Solid" BorderWidth="1px" ForeColor="Black" /></div>
      </td>
    </tr>
    <tr>
      <td>
      </td>
      <td align="left">
        <div>
          <dxe:ASPxButton ID="btnUpload" runat="server" AutoPostBack="False" Text="Upload"
            OnClick="btnUpload_Click" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
          </dxe:ASPxButton>
        </div>
      </td>
    </tr>
  </table>
  </div>
  <br />
  <dxpc:ASPxPopupControl ID="pupMsg" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
    CssPostfix="Aqua" ImageFolder="~/App_Themes/Aqua/{0}/" HeaderText="Warning!" Modal="true"
    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter">
    <ContentStyle VerticalAlign="Top">
    </ContentStyle>
    <SizeGripImage Height="12px" Width="12px" />
    <ContentCollection>
      <dxpc:PopupControlContentControl runat="server">
        <table cellpadding="2" cellspacing="2">
          <tr>
            <td colspan="2">
              Today rate file has been uploaded! Continue upload click Ok.
            </td>
          </tr>
          <tr style="width: 300px">
            <td align="center" style="width: 150px">
              <dxe:ASPxButton ID="btnOk" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
                CssPostfix="Aqua" Text="Ok" Width="30px" OnClick="btnOk_Click">
              </dxe:ASPxButton>
            </td>
            <td align="center" style="width: 150px">
              <dxe:ASPxButton ID="btnCancel" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
                CssPostfix="Aqua" Text="Cancel" Width="30px" OnClick="btnCancel_Click">
              </dxe:ASPxButton>
            </td>
          </tr>
        </table>
      </dxpc:PopupControlContentControl>
    </ContentCollection>
    <CloseButtonImage Height="16px" Width="17px" />
  </dxpc:ASPxPopupControl>
  <br />

  <script language="javascript" type="text/javascript">
       jQuery(document).ready(function(){
      jQuery('#aMenuUplRate').attr('class', 'active');
    });
  </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
  <div class="heading">Imported Rate Search
  </div>
  <div style="margin: 0 0 20px 10px">
    <div style="margin: 10px 0 0 0">
      <span style="color: #808080">From:</span>
      <div style="margin: -20px 0 0 50px">
        <dxe:ASPxDateEdit ID="dateFrom" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
          CssPostfix="Aqua" ImageFolder="~/App_Themes/Aqua/{0}/" ShowShadow="False" Width="130px">
          <ValidationSettings>
            <ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" Width="14px" />
            <ErrorFrameStyle ImageSpacing="4px">
              <ErrorTextPaddings PaddingLeft="4px" />
            </ErrorFrameStyle>
          </ValidationSettings>
          <DropDownButton>
            <Image Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png" UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" UrlPressed="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
              Width="9px" />
          </DropDownButton>
          <CalendarProperties>
            <HeaderStyle Spacing="1px" />
            <FooterStyle Spacing="17px" />
          </CalendarProperties>
        </dxe:ASPxDateEdit>
      </div>
    </div>
    <div style="margin: 10px 0 0 0">
      <span style="color: #808080">To: </span>
      <div style="margin: -20px 0 0 50px">
        <dxe:ASPxDateEdit ID="dateTo" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
          CssPostfix="Aqua" ImageFolder="~/App_Themes/Aqua/{0}/" ShowShadow="False" Width="130px">
          <ValidationSettings>
            <ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" Width="14px" />
            <ErrorFrameStyle ImageSpacing="4px">
              <ErrorTextPaddings PaddingLeft="4px" />
            </ErrorFrameStyle>
          </ValidationSettings>
          <DropDownButton>
            <Image Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png" UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" UrlPressed="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
              Width="9px" />
          </DropDownButton>
          <CalendarProperties>
            <HeaderStyle Spacing="1px" />
            <FooterStyle Spacing="17px" />
          </CalendarProperties>
        </dxe:ASPxDateEdit>
      </div>
    </div>
    &nbsp;<dxe:ASPxButton ID="btnSearch" runat="server" Text="Search" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
      CssPostfix="Aqua" OnClick="btnSearch_Click" AutoPostBack="False">
    </dxe:ASPxButton>
  </div>
  <div class="heading">
    Imported Rate
  </div>
  <table>
    <tr>
      <td>
      </td>
    </tr>
    <tr>
      <td style="width: 825px;" align="center">
        <dxwgv:ASPxGridView ID="gvFileUpload" runat="server" AutoGenerateColumns="False"
          KeyFieldName="Id" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua"
          OnBeforeColumnSortingGrouping="gvFileUpload_BeforeColumnSortingGrouping" OnPageIndexChanged="gvFileUpload_PageIndexChanged">
          <Columns>
            <dxwgv:GridViewDataTextColumn Caption="File Name" FieldName="FileName" VisibleIndex="0"
              Name="FileName">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataDateColumn Caption="Upload Date" FieldName="UploadDate" VisibleIndex="2"
              Name="UploadDate">
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <HeaderStyle HorizontalAlign="Center" />
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataTextColumn Caption="Upload by" FieldName="UploadBy" VisibleIndex="3"
              Name="UploadBy">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataImageColumn Caption="View" Name="View" VisibleIndex="1">
              <DataItemTemplate>
                <a href="ImportRatePage.aspx?id=<%#Eval("Id") %>">
                  <img alt="" src="../images/icon/Excel.png" width="32" height="32" />
                </a>
              </DataItemTemplate>
              <PropertiesImage ImageAlign="Middle">
              </PropertiesImage>
              <HeaderStyle HorizontalAlign="Center" />
            </dxwgv:GridViewDataImageColumn>
            <dxwgv:GridViewDataTextColumn Caption="Id" Name="ID" Visible="False" VisibleIndex="5">
            </dxwgv:GridViewDataTextColumn>
          </Columns>
          <Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
          </Styles>
          <SettingsLoadingPanel Text="" />
          <Images ImageFolder="~/App_Themes/Aqua/{0}/">
            <CollapsedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png"
              Width="15px" />
            <ExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png"
              Width="15px" />
            <FilterRowButton Height="13px" Width="13px" />
            <DetailCollapsedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png"
              Width="15px" />
            <DetailExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png"
              Width="15px" />
            <HeaderFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png" Width="19px" />
            <HeaderActiveFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png"
              Width="19px" />
            <HeaderSortDown Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png"
              Width="7px" />
            <HeaderSortUp Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png" Width="7px" />
            <WindowResizer Height="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png" Width="13px" />
          </Images>
          <StylesEditors>
            <ProgressBar Height="25px">
            </ProgressBar>
          </StylesEditors>
          <SettingsPager PageSize="5">
            <AllButton>
              <Image Height="19px" Width="27px" />
            </AllButton>
            <FirstPageButton>
              <Image Height="19px" Width="23px" />
            </FirstPageButton>
            <LastPageButton>
              <Image Height="19px" Width="23px" />
            </LastPageButton>
            <NextPageButton>
              <Image Height="19px" Width="19px" />
            </NextPageButton>
            <PrevPageButton>
              <Image Height="19px" Width="19px" />
            </PrevPageButton>
          </SettingsPager>
          <ImagesEditors>
            <CalendarFastNavPrevYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png"
              Width="19px" />
            <CalendarFastNavNextYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png"
              Width="19px" />
            <DropDownEditDropDown Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
              Width="9px" />
            <SpinEditIncrement Height="6px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              Width="7px" />
            <SpinEditDecrement Height="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              Width="7px" />
            <SpinEditLargeIncrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" Width="7px" />
            <SpinEditLargeDecrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" Width="7px" />
          </ImagesEditors>
        </dxwgv:ASPxGridView>
        <br />
        <br />
        <dxwgv:ASPxGridView ID="gvRate" runat="server" AutoGenerateColumns="False" KeyFieldName="Id"
          CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
          <Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
          </Styles>
          <SettingsLoadingPanel Text="" />
          <Images ImageFolder="~/App_Themes/Aqua/{0}/">
            <CollapsedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png"
              Width="15px" />
            <ExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png"
              Width="15px" />
            <FilterRowButton Height="13px" Width="13px" />
            <DetailCollapsedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png"
              Width="15px" />
            <DetailExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png"
              Width="15px" />
            <HeaderFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png" Width="19px" />
            <HeaderActiveFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png"
              Width="19px" />
            <HeaderSortDown Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png"
              Width="7px" />
            <HeaderSortUp Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png" Width="7px" />
            <WindowResizer Height="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png" Width="13px" />
          </Images>
          <Columns>
            <dxwgv:GridViewDataTextColumn Caption="Buy CCY" FieldName="BuyCCY" VisibleIndex="0"
              Name="BuyCCY" Width="50px">
              <HeaderStyle HorizontalAlign="Center" />
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Sell CCY" FieldName="SellCCY" Name="SellCCY"
              VisibleIndex="1" Width="50px">
              <PropertiesTextEdit DisplayFormatString="d">
              </PropertiesTextEdit>
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <HeaderStyle HorizontalAlign="Center" />
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Floor Rate" FieldName="FloorRate" VisibleIndex="2"
              Name="FloorRate">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <HeaderStyle HorizontalAlign="Right" />
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Ceiling Rate" Name="CeilingRate" VisibleIndex="3"
              FieldName="CeilingRate">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <HeaderStyle HorizontalAlign="Right" />
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Internal Rate" FieldName="InternalRate" Name="colInternalRate"
              VisibleIndex="4">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditCellStyle HorizontalAlign="Right" VerticalAlign="Middle">
              </EditCellStyle>
              <EditFormCaptionStyle HorizontalAlign="Right" VerticalAlign="Middle">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right" VerticalAlign="Middle" />
              <CellStyle HorizontalAlign="Right" VerticalAlign="Middle">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right" VerticalAlign="Middle">
              </FooterCellStyle>
              <GroupFooterCellStyle HorizontalAlign="Right" VerticalAlign="Middle">
              </GroupFooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
          </Columns>
          <StylesEditors>
            <ProgressBar Height="25px">
            </ProgressBar>
          </StylesEditors>
          <SettingsPager>
            <AllButton>
              <Image Height="19px" Width="27px" />
            </AllButton>
            <FirstPageButton>
              <Image Height="19px" Width="23px" />
            </FirstPageButton>
            <LastPageButton>
              <Image Height="19px" Width="23px" />
            </LastPageButton>
            <NextPageButton>
              <Image Height="19px" Width="19px" />
            </NextPageButton>
            <PrevPageButton>
              <Image Height="19px" Width="19px" />
            </PrevPageButton>
          </SettingsPager>
          <Settings ShowFilterRow="True" />
          <ImagesEditors>
            <CalendarFastNavPrevYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png"
              Width="19px" />
            <CalendarFastNavNextYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png"
              Width="19px" />
            <DropDownEditDropDown Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
              Width="9px" />
            <SpinEditIncrement Height="6px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              Width="7px" />
            <SpinEditDecrement Height="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              Width="7px" />
            <SpinEditLargeIncrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" Width="7px" />
            <SpinEditLargeDecrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"
              UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" Width="7px" />
          </ImagesEditors>
        </dxwgv:ASPxGridView>
      </td>
    </tr>
  </table>
</asp:Content>
